<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用戶註冊_<?=SITE_NAME?>_<?=$scfg['base']['title']?>
</title>
<meta name="keywords" content="<?=$scfg['base']['keywords']?>" />
<meta name="description" content="<?=$scfg['base']['description']?>" />
<script type="text/javascript">
try{document.domain="<?=SITE_DOMAIN?>";}catch (e){};
var __scfg__ = {
	staticUrl:"<?=surl::get("static");?>",
	thisPage:"register"
};
</script>
<script type="text/javascript" src="<?=surl::get("static");?>www.js"></script>
</head>
<body>
<? tpl::import('header.base.tpl.php');?>
<div id="Main">
  <div class="note"> 注册步骤： 1.阅读并同意协议　>　<span>2.填写信息</span>　>　3.注册成功 </div>
  <div class="step">
  <form enctype="application/x-www-form-urlencoded" method="post" name="RegForm" onsubmit="return XypForm(this)"  action="<?=surl::get('urs')?>reg.php">
    <div class="title">填写注册信息</div>
    <div class="RegFormDiv">
      <div  class="div1">
        <label for="urs">会 员 名 :</label>
        <input size="50" type="text" name="urs"  require="1" minlen="4" maxlen="20" dataType="cnaznum" class="xyp-form-field xyp-form-text" id="urs" />
        <span id="span_urs"><a href="javascript:chkUrs();">检测会员名是否可用?</a></span>
		<div class="blur">4-20个字符(包括小写字母、数字、下划线、中文)，一个汉字为两个字符，推荐使用中文会员名。一旦注册成功会员名不能修改。</div>
	  </div>
	  <div  class="div1">
        <label for="mail">Email地址:</label>
        <input size="50" type="text" name="mail" require="1" minlen="6" maxlen="64" dataType="email"   class="xyp-form-field xyp-form-text ime" id="mail" />
		<div class="blur">请填写常用的电子邮件地址，<?=SITE_NIKENAME?>需要您通过邮件完成注册。</div>
	  </div>
	  <div  class="div1">
        <label for="mail2">确认Email:</label>
        <input size="50" type="text" name="mail2" require="1" again="mail"  class="xyp-form-field xyp-form-text ime" id="mail2" />
		<div class="blur">请再输入一遍上面输入的电子邮件地址。</div>
	  </div>
      <div  class="div1">
        <label for="pwd">设定密码 :</label>
        <input size="50" type="password" name="pwd" require="1" minlen="6" maxlen="16"   class="xyp-form-field xyp-form-text ime" id="pwd" />
		<div class="blur">密码由6-16个字符组成，请使用英文字母加数字或符号的组合密码，不能单独使用英文字母、数字或符号作为您的密码。</div>
	  </div>	  
	  <div  class="div1">
	    <label for="pwd2">确认密码 :</label>
	    <input size="50" type="password" name="pwd2" require="1" again="pwd"  class="xyp-form-field xyp-form-text ime" id="pwd2" />
		<div class="blur">请再输入一遍您上面输入的密码。</div>
	  </div>
	  <div  class="div1">
	    <label for="pwd2">验 证 码 :</label>
	    <input size="20" type="text" name="authimg" require="1" minlen="4" maxlen="4"  class="xyp-form-field xyp-form-text ime" id="authimg" />
		<img src="<?=surl::get('www')?>authcode.gif" />
		<div class="blur">请输入右边图片上的验证码。</div>
	  </div>
    </div>
	
    <div class="btn">
      <input class="bg_btn_blue" type="submit" value="注册" />
      <input name="act" type="hidden" id="act" value="reg" />
      <input name="ourl" type="hidden" id="ourl" value="<?=surl::get('www')?>register.php?step03" />
      <input name="eurl" type="hidden" id="eurl" value="<?=surl::get('www')?>register.php?step02" />
	  （您注册使用<?=SITE_NIKENAME?>须年满18岁）
    </div>
  </form>
  </div>
</div>
<script type="text/javascript">
var json_check = new Json();

var onb = function(o)
{
	return $(o).parent().find("div.focus").removeClass().addClass('blur');
};
var onf = function(o)
{
	return $(o).parent().find("div.blur").removeClass().addClass('focus');
}
var callback = function(o)
{
	o = o || [0,'系统忙请稍后重试!'];
	var urs = _.e('urs');
	if(o[0])
	{
		if(XypForm.chk(urs))
		{
			$(_.e('span_urs')).after('<div class="true" id="div_urs_ok">'+o[1]+'</div>');
		}
	}else
	{
		XypForm.msg(urs,o[1]);
	}
}
var chkUrs = function()
{
	$("#div_urs_ok").remove();
	var urs = _.e('urs');
	if(urs.value)
	{
		json_check.load(url.en({
			act:'regChk',
			urs:urs.value,
			tmp:_.rand()
		},'<?=surl::get('urs')?>reg.php'));
	}else
	{
		XypForm.chk(urs);
	}
}

$("input").blur(function()
{
	onb(this);
}).focus(function()
{
	onf(this);
});

if(typeof XypForm == "undefined")
{
	include.js(__scfg__.staticUrl+"xypfrom/xypfrom.js");
	include.css(__scfg__.staticUrl+"xypfrom/xypfrom.css");
}
</script>
<!--Main End-->
<? tpl::import('foot.tpl.php');?>
</body>
</html>
